/**
 * @author NestorangeloG
 */
var ClaycodeController = Singleton.create({
	main: null,
	entryTemplate: null,
	request: null,
	initialize: function(){
		this.main = $('inner_content_container');
		this.main.update('');
	},
	
	setEntryTemplate: function(){
		var entryTemplateHtml = '<div class="post">'
			+ '<p class="meta">'
				+ '<span class="date">Sunday, August 26, 2011</span> 7:27 AM Posted by <a href="#">#{postedBy}</a>'
			+ '</p>'
			+ '<h2 class="title">'
				+ '<a href="#">#{title}</a>'
			+ '</h2>'
			+ '<div class="entry">'
				+ '#{entry}'
			+ '</div>'
			+ '<div><a href="#" class="links">View Full Story</a></div>'
		+ '</div>';
		
		this.entryTemplate = new Template(entryTemplateHtml);
	},
	
	addEntry: function(entryInfo){
		this.main.insert(this.entryTemplate.evaluate(entryInfo));
	}
	
});

